import request from '@/utils/request'

// 定义多个方法
const apiMethods = {
  path: '/update_log',
  getList(params) {
    return request({
      url: this.path + '/list',
      method: 'get',
      params
    })
  },
  update(data) {
    return request({
      url: this.path + '/save',
      method: 'put',
      data
    })
  },
  info(params) {
    return request({
      url: this.path + '/get',
      method: 'get',
      params
    })
  },
  create(data) {
    return request({
      url: this.path + '/save',
      method: 'post',
      data
    })
  },
  del(data) {
    return request({
      url: this.path + '/delete',
      method: 'delete',
      data
    })
  }

}

export default apiMethods
